package cn.ming.wfchat.app.me.activity.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.ming.wfchat.R;
import cn.ming.wfchat.app.me.activity.model.WithdrawalRecordBean;

/**
 * 收益记录
 */
public class WithdrawalRecordAdapter extends BaseQuickAdapter<WithdrawalRecordBean.ListBean, BaseViewHolder> {

    public WithdrawalRecordAdapter(List<WithdrawalRecordBean.ListBean> data) {
        super(R.layout.item_withdrawal_record, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, WithdrawalRecordBean.ListBean item) {
        helper.setText(R.id.tv_timer, item.getCreateTime());
        helper.setText(R.id.tv_number, item.getAmount() + "FJ");
        helper.setText(R.id.tv_adds, item.getWalletAddress());

    }
}
